package cn.wolfcode.luowowo.community.service;

import cn.wolfcode.luowowo.community.domain.Question;
import cn.wolfcode.luowowo.community.query.QuestionQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IQuestionService {
    /**
     * 分页查询
     * @param qo
     * @return
     */
    PageInfo query(QuestionQuery qo);


    /**
     * 查询问题对象
     * @param id
     * @return
     */
    Question selectQuestionById(Long id);

    Question get(Long id);

    void saveOrUpdate(Question question);

    List<Question> selectAll();

    void updateNum(Long answerId);

    PageInfo queryForNum(QuestionQuery qo);
}
